<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<button>测试</button>
</body>
<script src="../js/jquery-3.1.1.js"></script>
<script>
    $('button').on('click',function () {
        $.ajax({
            url:'http://localhost:8086/index/hotList.json',
            type:'get',
            success:function (data) {
                console.log(data)
            },
            err:function (err) {
                console.log(err)
            }
        })
    })
</script>
</html>